Charpit method for solving partial differential equation